package cn.oniokey.waterDetection.mapper;

import cn.oniokey.waterDetection.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("SELECT username, password FROM user WHERE username = #{username} AND password = #{password}")
    User getUserByUsernameAndPassword(String username, String password);
}
